a = input().split()
row = int(a[0])
col = int(a[1])
nums = [[0 for _ in range(col)] for _ in range(row)]

print(nums)
for i in range(row):
    cur = input()
    for j in range(col):
        nums[i][j] = int(cur[j])

print(nums)